home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
t_os
/
clcl
/
platform.h
< prev
next >
Wrap
Text File
|
1994-06-01
|
2KB
|
100 lines
/*
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ 初期設定用ヘッダファイル ///// Tab Size : 4 ///// ┃
┃ ┃
┃ Platform.h v2.0 L10 ┃
┃ ┃
┃ (C)K.Konishi 16-08-93 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
*/
#define MY_NAME "小西国造"
#define MY_SCHOOL "大阪電気通信大学"
#define MY_NUMBER "F92047"
#if !defined(___Platform)
#define ___Platform
#define ___PlatformDate 16-08-93
#define ___PlatformVer v2.0_L10
/* TRUE か FALSE のみを返す型 */
typedef unsigned char Boolean; /* 信樂 推奨型 */
typedef unsigned char Bool;
typedef int BOOL;
typedef unsigned char BYTE;
#if !defined(TRUE)
#define TRUE 1
#endif
#if !defined(FALSE)
#define FALSE 0
#endif
#if !defined(square)
#define square(x) ((x) * (x))
#endif
#if !defined(qube)
#define qube(x) ((x) * (x) * (x))
#endif
#if !defined(maxof)
#define maxof(a,b) ((a) > (b) ? (a) : (b))
#endif
#if !defined(minof)
#define minof(a,b) ((a) < (b) ? (a) : (b))
#endif
#if !defined(swap)
#define swap(a,b) { \
b ^= a; \
a ^= b; \
b ^= a; \
}
#endif
#if !defined(iskanji1)
#define iskanji1(a) (((0x81 <= ((unsigned char)a) && ((unsigned char)a) <= 0x9f)) || \
((0xe0 <= ((unsigned char)a) && ((unsigned char)a) <= 0xef)))
#endif
#if !defined(iskatakana)
#define iskatakana(a) (((0xa6 <= ((unsigned char)a) && ((unsigned char)a) <= 0xdd)))
#endif
#if !defined(x0_5)
#define x0_5(a) (a>>1)
#endif
#if !defined(x1_0)
#define x1_0(a) (a)
#endif
#if !defined(x1_5)
#define x1_5(a) (a+(a>>1))
#endif
#if !defined(x2_0)
#define x2_0(a) (a<<1)
#endif
#if !defined(x4_0)
#define x4_0(a) (a<<2)
#endif
#endif